package com.cx.jdk;

import java.util.ArrayList;

/**
 * @Author:cxy
 * @Date:2022/4/13 20:22
 */
public class TestOOM {
    byte[] bytes = new byte[1024 * 1024];

    public static void main(String[] args) {
        ArrayList<TestOOM> list = new ArrayList<>();
        int i = 0;
        while (true){
            i++;
            list.add(new TestOOM());
        }
    }
}
